package com.wgts.wgts.mvp.model.imp;

import com.wgts.wgts.mvp.model.IGuessingAndAwardFragmentModel;
import com.wgts.wgts.netmodle.HttpResultSubscriber;
import com.wgts.wgts.netmodle.NetService;
import com.wgts.wgts.netmodle.req.AwardListReq;
import com.wgts.wgts.netmodle.resp.AwardPrizeEntity;
import com.wgts.wgts.netmodle.resp.GuessingAndAwardOrderEntity;

import java.util.List;

/*
 *
 *
 *   data:2018/10/1311:52
 *
 */public class GuessingAndAwardFragmentModel implements IGuessingAndAwardFragmentModel {
     private NetService netService;

    public GuessingAndAwardFragmentModel(NetService netService) {
        this.netService = netService;
    }

    @Override
    public void initOrderList(Integer drawAllType, Integer pageIndex, Integer pageSize, HttpResultSubscriber<List<GuessingAndAwardOrderEntity>> subscriber) {
        netService.guessAndAwardList(drawAllType, pageIndex, pageSize, subscriber);
    }

    @Override
    public void awardPrizeList(AwardListReq awardListReq, HttpResultSubscriber<List<AwardPrizeEntity>> subscriber) {
        netService.awardPrizeList(awardListReq, subscriber);
    }
}
